package cn.liumaotong.tbstest;

import android.app.Application;
import android.util.Log;

import com.tencent.smtt.sdk.QbSdk;

public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        initX5();
    }

    /**
     * 初始化腾讯TBSX5浏览器
     */
    private void initX5() {
        QbSdk.initX5Environment(getApplicationContext(), new QbSdk.PreInitCallback() {
            @Override
            public void onCoreInitFinished() {

            }

            @Override
            public void onViewInitFinished(boolean b) {
                Log.d("app", " onViewInitFinished is " + b);
            }
        });
    }
}
